package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户账号和后台IP映射表
 * </p>
 *
 * @author stylefeng
 * @since 2018-02-02
 */
@TableName("em_t_account_ip_map")
public class AccountIpMap extends Model<AccountIpMap> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户账号，要求是手机号
     */
	private String id;
	private String account;
	private String phone;
	@TableField("pc_id")
	private String pcId;
    /**
     * 同步方式：1手动 2自动
     */
	@TableField("synchro_type")
	private String synchroType;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPcId() {
		return pcId;
	}

	public void setPcId(String pcId) {
		this.pcId = pcId;
	}

	public String getSynchroType() {
		return synchroType;
	}

	public void setSynchroType(String synchroType) {
		this.synchroType = synchroType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.phone;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "AccountIpMap{" +
			", account=" + account +
			", pcId=" + pcId +
			", synchroType=" + synchroType +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
